<?php
/**
 * CreateTime: 2022/5/28 16:04
 */

namespace App\Http\Requests\NewContract;

use App\Http\Requests\BaseRequests;

class AddPrepayPost  extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'fulfillment_node_id' => "required",
            'prepay_money' => "required",
            'prepay_evidence_contents' => "required"
        ];
    }

    public function messages()
    {
        return [
            'fulfillment_node_id.required' => "履约节点不能为空",
            'prepay_money.required' => "预付金额不能为空",
            'prepay_evidence_contents.required' => "预付凭证不能为空"
        ];
    }
}
